#include "ddl.h"
#include "global_define.h"
#include "rtthread.h"
#include "w25qxx.h"
#include "alarm_app.h"
#include "wdt_app.h"
#include "gpio.h"

void device_init(void)
{
//	    ///< 端口配置					//搬到rt_hw_board_init
//    App_LpUartPortCfg();
//    ///< LPUART配置
//    App_LpUartCfg();

		//W25QXX_Init();
		App_RtcCfg();			//应该在 联网获取时间后再配置
		App_WdtInit(WdtIntEn,WdtT820ms);
		
		
}

int32_t main(void)
{
    //device_init();
		rt_kprintf("main init\n");
    while(1)
    {
				//Gpio_WriteOutputIO(GpioPortC,GpioPin7,1);
				//rt_kprintf("hello\n");
//			rt_thread_delay(500);
//			Gpio_WriteOutputIO(GpioPortC,GpioPin7,0);
			rt_thread_delay(1000);
			
    }
}

static void reboot(uint8_t argc, char **argv)
{
	NVIC_SystemReset();
}
MSH_CMD_EXPORT(reboot, send blue data to uart.);


